package k8s

import (
	k8sclient "k8s_gui_client/k8s/client"
)

//event list
func GetEvents(namespace string  ) (map[string]interface{},error){

	if namespace != "" {
	   return  k8sclient.CurrentK8sApiClient.GetAPI("/api/v1/namespaces/"+namespace+"/events")
	} else {
	   return  k8sclient.CurrentK8sApiClient.GetAPI("/api/v1/events")
		
	}
	
	
}